define(['services/services'], function (services) {
    'use strict';
    services.factory('orderServices', ['$http','apiUrl','$q', function($http,apiUrl,$q) {
        return {
            /**
             * 添加订单
             * @param orderList
             * @returns {HttpPromise}
             */
            putOrder:function(orderList){
               return $http.put(apiUrl+"/api/v1/order",{list:orderList})
            }
        };
    }]);
});